import java.math.BigInteger;
import java.util.StringTokenizer;

class P11556_39643 {
	public static void main(String[] args) {
		BigInteger[] b = new BigInteger[51];
		b[1] = new BigInteger("3");
		b[2] = new BigInteger("7");
		b[3] = new BigInteger("15");
		b[4] = new BigInteger("31");
		b[5] = new BigInteger("63");
		b[6] = new BigInteger("127");
		b[7] = new BigInteger("255");
		b[8] = new BigInteger("511");
		b[9] = new BigInteger("1023");
		b[10] = new BigInteger("2047");
		b[11] = new BigInteger("4095");
		b[12] = new BigInteger("8191");
		b[13] = new BigInteger("16383");
		b[14] = new BigInteger("32767");
		b[15] = new BigInteger("65535");
		b[16] = new BigInteger("131071");
		b[17] = new BigInteger("262143");
		b[18] = new BigInteger("524287");
		b[19] = new BigInteger("1048575");
		b[20] = new BigInteger("2097151");
		b[21] = new BigInteger("4194303");
		b[22] = new BigInteger("8388607");
		b[23] = new BigInteger("16777215");
		b[24] = new BigInteger("33554431");
		b[25] = new BigInteger("67108863");
		b[26] = new BigInteger("134217727");
		b[27] = new BigInteger("268435455");
		b[28] = new BigInteger("536870911");
		b[29] = new BigInteger("1073741823");
		b[30] = new BigInteger("2147483647");
		b[31] = new BigInteger("4294967295");
		b[32] = new BigInteger("8589934591");
		b[33] = new BigInteger("17179869183");
		b[34] = new BigInteger("34359738367");
		b[35] = new BigInteger("68719476735");
		b[36] = new BigInteger("137438953471");
		b[37] = new BigInteger("274877906943");
		b[38] = new BigInteger("549755813887");
		b[39] = new BigInteger("1099511627775");
		b[40] = new BigInteger("2199023255551");
		b[41] = new BigInteger("4398046511103");
		b[42] = new BigInteger("8796093022207");
		b[43] = new BigInteger("17592186044415");
		b[44] = new BigInteger("35184372088831");
		b[45] = new BigInteger("70368744177663");
		b[46] = new BigInteger("140737488355327");
		b[47] = new BigInteger("281474976710655");
		b[48] = new BigInteger("562949953421311");
		b[49] = new BigInteger("1125899906842623");
		b[50] = new BigInteger("2251799813685247");
		b[0] = new BigInteger("1");
		
		String line = readLn();
		
		while (line != null) {
			StringTokenizer st = new StringTokenizer(line);
			
			BigInteger x = new BigInteger(st.nextToken());
			int index = Integer.parseInt(st.nextToken());
			
			if (x.compareTo(b[index]) > 0) {
				System.out.println("no");
			} else System.out.println("yes");
			
			line = readLn();
		}
	}
	
	static String readLn() {
		String newLine = System.getProperty("line.separator");
		StringBuilder buffer = new StringBuilder();
		int car = -1;
		try {
			car = System.in.read();
			while ((car > 0) && (car != newLine.charAt(0))) {
				buffer.append((char) car);
				car = System.in.read();
			}
			if (car == newLine.charAt(0))
				System.in.skip(newLine.length() - 1);
		} catch (java.io.IOException e) {
			return (null);
		}
		if ((car < 0) && (buffer.length() == 0))
			return (null);
		return (buffer.toString());
	}
}
